package com.webwork.lims.util;

import org.apache.commons.codec.binary.Base64;

public final class RSA {

	/**
	 * 解密
	 * @param bytes
	 * @return
	 */
	public static String decodeBase(final String str) {
		return new String(Base64.decodeBase64(str.getBytes()));
	}

	/**
	 * 加密
	 * @param bytes
	 * @return
	 */
	public static String encodeBase(final String str) {
		return new String(Base64.encodeBase64(str.getBytes()));
	}

}
